<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>熊猫保护专题</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <style>
        :root {
            --primary-color: #4CAF50;
            --secondary-color: #FFC107;
        }

        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background: #f0f9eb;
        }

        .lang-switch {
            text-align: right;
            margin-bottom: 20px;
        }

        .lang-btn {
            padding: 8px 15px;
            border-radius: 15px;
            border: 2px solid var(--primary-color);
            background: white;
            cursor: pointer;
            transition: all 0.3s;
        }

        .lang-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: scale(1.05);
        }

        .content {
            background: white;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            position: relative;
        }

        h1 {
            color: var(--primary-color);
            border-left: 5px solid var(--secondary-color);
            padding-left: 15px;
            margin: 20px 0;
        }

        .bamboo-border {
            border: 3px dashed var(--primary-color);
            padding: 15px;
            margin: 15px 0;
            position: relative;
        }

        .interactive:hover::after {
            content: "🎋";
            position: absolute;
            animation: fall 3s linear;
        }

        @keyframes fall {
            0% { transform: translateY(-20px); opacity: 1; }
            100% { transform: translateY(50px); opacity: 0; }
        }

        img {
            max-width: 100%;
            border-radius: 10px;
            margin: 15px 0;
        }

        .quote {
            background: #e8f5e9;
            padding: 15px;
            border-radius: 10px;
            font-style: italic;
        }

        .fade-enter-active, .fade-leave-active {
            transition: opacity 0.5s;
        }
        .fade-enter, .fade-leave-to {
            opacity: 0;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="lang-switch">
            <button class="lang-btn" @click="currentLang = 'zh'">中文</button>
            <button class="lang-btn" @click="currentLang = 'en'">English</button>
        </div>

        <transition name="fade" mode="out-in">
            <div class="content" v-if="currentLang === 'zh'" key="zh">
                <h1>中国的大熊猫 🌱</h1>
                <div class="bamboo-border">
                    <p>【中国的大熊猫】🌱<br>
大熊猫是中国国宝，有着独特的黑白皮毛。它们主要生活在四川的竹林里，每天要吃12-38公斤竹子——相当于几十本课本的重量！中国的保护工作让熊猫数量持续增长：<br>
✓ 自然保护区（如卧龙）提供安全家园
✓ 繁育基地帮助熊猫宝宝健康成长
✓ 植树造林重建熊猫森林家园<br>
 
趣味知识：刚出生的熊猫宝宝比奶瓶还小，体重仅100克！熊猫还是国际动物保护组织的标志哦。<br>
 
“保护熊猫，就是保护地球的自然平衡。” 🐼<br>
 
互动创意：画些竹叶让读者“喂”给你的纸熊猫吧！</p>
                    <img src="https://ts1.cn.mm.bing.net/th/id/R-C.b70506dd469652fc7e523590db1d8f8e?rik=NDY9aYzesmjdcA&riu=http%3a%2f%2fp4.qhmsg.com%2ft0143b426aee3bb03cb.jpg&ehk=wWRNoRtAiPhyITdmipClFqgjL%2fvjth9ktdBtE2QK2FA%3d&risl=&pid=ImgRaw&r=00" >
                </div>
                <div class="interactive">点击这里喂竹叶 🐼</div>
                <div class="quote">“保护熊猫，就是保护地球的自然平衡。”</div>
            </div>

            <div class="content" v-else key="en">
                <h1>China’s Lovely Pandas 🌱</h1>
                <div class="bamboo-border">
                    <p>China’s Lovely Pandas 🌱<br>
 
Giant pandas, with their black-and-white fur, are China’s national treasure. They mainly live in Sichuan’s bamboo forests, eating about 12-38kg of bamboo every day – as heavy as many textbooks! Thanks to China’s protection work:<br>
✓ Nature parks (like Wolong) keep them safe<br>
✓ Special breeding centers help baby pandas grow<br>
✓ Planting new trees rebuilds their homes<br>
Fun fact: A newborn panda is smaller than a milk bottle, weighing just 100g! Pandas are so special that they’re the logo of an international animal protection group.<br>
 
“Protecting pandas helps protect our planet’s natural balance.” 🐼<br>
 
Try this: Draw bamboo leaves readers can “feed” to your paper panda!</p>
                    <img src="https://p1.ssl.qhimgs1.com/t01a34bab0363f22951.jpg" alt="Panda Image">
                </div>
                <div class="interactive">Click to feed bamboo 🐼</div>
                <div class="quote">"Protecting pandas helps protect our planet’s natural balance."</div>
            </div>
        </transition>
    </div>

    <script>
        const { createApp } = Vue

        createApp({
            data() {
                return {
                    currentLang: 'zh',
                    content: {
                        zh: {
                            title: "中国的大熊猫 🌱",
                            text: `【中国的大熊猫】🌱
大熊猫是中国国宝，有着独特的黑白皮毛。它们主要生活在四川的竹林里，每天要吃12-38公斤竹子——相当于几十本课本的重量！中国的保护工作让熊猫数量持续增长：
✓ 自然保护区（如卧龙）提供安全家园
✓ 繁育基地帮助熊猫宝宝健康成长
✓ 植树造林重建熊猫森林家园
趣味知识：刚出生的熊猫宝宝比奶瓶还小，体重仅100克！熊猫还是国际动物保护组织的标志哦。
“保护熊猫，就是保护地球的自然平衡。” 🐼
互动创意：画些竹叶让读者“喂”给你的纸熊猫吧！`,
                            quote: "“保护熊猫，就是保护地球的自然平衡。”"
                        },
                        en: {
                            title: "China’s Lovely Pandas 🌱",
                            text: `China’s Lovely Pandas 🌱
Giant pandas, with their black-and-white fur, are China’s national treasure. They mainly live in Sichuan’s bamboo forests, eating about 12-38kg of bamboo every day – as heavy as many textbooks! Thanks to China’s protection work:
✓ Nature parks (like Wolong) keep them safe
✓ Special breeding centers help baby pandas grow
✓ Planting new trees rebuilds their homes
Fun fact: A newborn panda is smaller than a milk bottle, weighing just 100g! Pandas are so special that they’re the logo of an international animal protection group.
“Protecting pandas helps protect our planet’s natural balance.” 🐼
Try this: Draw bamboo leaves readers can “feed” to your paper panda!`,
                            quote: "\"Protecting pandas helps protect our planet’s natural balance.\""
                        }
                    }
                }
            }
        }).mount('#app')
    </script>
</body>
</html>
